package ex55.mm.flow.impound.quote.aggregate;

import ex55.mm.flow.impound.quote.exchange.api.MarketDataDepth;

import java.math.BigDecimal;

public class TradeEdgeRst {
    // 交易边标签
    public final String label;
    // 资产转换（买，卖，区块链转账）
    public final ExEdge.Type side;
    // 盘口数据
    public final MarketDataDepth depth;
    // 资产转换节点
    public final ExchangeProduct exchangeProduct;
    // 转换节点权重
    public final BigDecimal tradeWeight;
    // 资产转换费
    public final BigDecimal rawTradeTakerFee;

    public TradeEdgeRst(String label, ExEdge.Type side
            , MarketDataDepth depth
            , ExchangeProduct exchangeProduct, BigDecimal tradeWeight
            , BigDecimal rawTradeTakerFee) {
        this.label = label;
        this.side = side;
        this.depth = depth;
        this.exchangeProduct = exchangeProduct;
        this.tradeWeight = tradeWeight.stripTrailingZeros();
        this.rawTradeTakerFee = rawTradeTakerFee.stripTrailingZeros();
    }
}
